package main

import (
	"flag"
	"fmt"
	"gitee.com/kelvins-io/kelvins-tools/service"
	"gitee.com/kelvins-io/kelvins-tools/template"
	"os"
)

var (
	operate = flag.String("operate", "template", "选择你的操作类型：template, service")
)

func main() {
	flag.Parse()
	if *operate == "" {
		fmt.Fprintln(os.Stderr, "选择你的操作类型 比如: template, service")
		return
	}
	switch *operate {
	case "template":
		template.Gen()
	case "service":
		service.Touch()
	default:
		fmt.Fprintln(os.Stdout, "不支持的operate")
	}
}
